import java.util.Arrays;
import java.util.Scanner;


class Base {
    public int X;
    public int Y;
    public void mul() {
        System.out.println(this.X*this.Y);
    }
}
class Sub extends Base {
    public Sub(int X,int Y) {
        super();
        this.X = X;
        this.Y = Y;
    }
    public void mul() {
        if( Y == 0) {
            System.out.println("Error");
        } else {
            System.out.println(X/Y);
        }
    }
}
public class Main {
    public static int[] printNumbers (int n) {
        // write code here
     //   Scanner in = new Scanner(System.in);
       // int count = in.nextInt();
        int[] array = new int[(int) Math.pow(10,n)-1];
        for(int i =1;i < Math.pow(10,n);i++) {
            array[i-1] = i;
        }
        return array;
    }

    public static void main(String[] args) {
        int[] ret = printNumbers(2);
        System.out.println(Arrays.toString(ret));
    }
    public static void main11(String[] args) {
        String s = "We Are Happy";
        String ss = s.replaceAll(" ","%20");
        System.out.println(ss);
    }

    public static void main10(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNextInt()) { // 注意 while 处理多个 case
            int a = in.nextInt();
            int b = in.nextInt();
            Sub sub = new Sub(a,b);
            sub.mul();
        }
    }
    public static void main9(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNextInt()) { // 注意 while 处理多个 case
            int a = in.nextInt();
            int b = in.nextInt();
            System.out.println(a + b);
        }
    }

    public static void main8(String[] args) {
        Scanner in = new Scanner(System.in);
        int[] ary = new int[6];
        for(int i = 0;i <ary.length;i++) {
            ary[i] = in.nextInt();
        }
        System.out.println(Arrays.toString(ary));
        int left = 0;
        int right = ary.length-1;
        while(left < right) {
            int a = ary[left];
            ary[left] = ary[right];
            ary[right] = a;
            left++;
            right--;
        }
        System.out.println(Arrays.toString(ary));
    }
    public static void main7(String[] args) {
        Scanner in = new Scanner(System.in);
        int num = in.nextInt();
        int i = 2;
        for(i = 2;i < num;i++) {
            if(num % i == 0) {
                System.out.println(false);
                break;
            }
        }
        if(i >= num) {
            System.out.println(true);
        }
    }
    public static void main6(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNextInt()) { // 注意 while 处理多个 case
            int a = in.nextInt();
            int count = 0;
            int b = a;
            while (a != 0) {
                a = a / 10;
                count++;
            }
            if(b <= 0) {
                System.out.println(a);
            } else {
                System.out.println(count);
            }

        }
    }

    public static void main5(String[] args) {
        Scanner in = new Scanner(System.in);
        double sum = 0f;
        double count = 0f;
        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNextInt()) { // 注意 while 处理多个 case
            int a = in.nextInt();
            if(a > 0) {
                sum += a;
                count++;
            } else {
                break;
            }
        }
        double aver = (sum / count);
        System.out.println(String.format("%.2f",aver));
    }
    public static void main4(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNextInt()) { // 注意 while 处理多个 case
            int a = in.nextInt();
            int b = in.nextInt();
            int c = Math.max(a,b);
            int d = Math.min(a,b);
            int x = 1;
            while(c*x % d != 0) {
                x++;
            }
            int ret = c*x;
            System.out.println(ret);
        }
    }
    public static void main3(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        int count = 0;
        while (in.hasNextInt()) { // 注意 while 处理多个 case
            int a = in.nextInt();
            if(a > 0) {
                count++;
            } else {
                System.out.println(count);
            }
        }
    }
    public static void main2(String[] args) {          //求和
        //write your code here........
        long count = 0;
        long sum = 0;
        for(int i = 0 ; i < 10 ; i++){
            count = count * 10 + 9;
            sum = sum + count;
        }
        System.out.println(sum);
    }
    public static void main1(String[] args) {
        long sum = 0;
        for (long i = 10; i <= 10000000000L; i *= 10)
            sum += i - 1;
        System.out.print(sum);
    }
}
